<?php echo $this->Html->addCrumb('About Us', '/about-us'); ?>
<div class="row">
  <div class="span4">
    <h2>About Us</h2>
    <?php
       if(isset( $aboutUsMain['Content']['info'])) {
         echo nl2br($aboutUsMain['Content']['info']);
       }
    ?>
  </div>
  <div class="span8">
    <h3>Executive Team</h3>
    <div class="row">
      <div class="span4">
        <?php if (!empty($teamImages) && !empty($teamImages[0]) && !empty($teamImages[0]['Photo'])  ) {
            $teamImage = $teamImages[0]['Photo'];
          ?>

        <ul class="thumbnails">
          <li class="span4">
            <?php echo $this->Html->image($teamImage['image_path'], array('alt' => $teamImage['caption'], 'title' => 'Executive Team Member', 'class' => 'photo')) ?>
          </li>
          <li><p class="companyTitle"><?php echo nl2br($teamImage['caption']);?></p></li>
        </ul>
        <?php } ?>
      </div>
      <div class="span4">
        <?php if (!empty($teamImages) && !empty($teamImages[1]) && !empty($teamImages[1]['Photo'])  ) {
            $teamImage = $teamImages[1]['Photo'];
          ?>

        <ul class="thumbnails">
          <li class="span4">
            <?php echo $this->Html->image($teamImage['image_path'], array('alt' => $teamImage['caption'], 'title' => 'Executive Team Member', 'class' => 'photo')) ?>
          </li>
          <li><p class="companyTitle"><?php echo nl2br($teamImage['caption']);?></p></li>
        </ul>
        <?php } ?>
      </div>
    </div>

    <div class="row">
      <div class="span4">
        <?php if (!empty($teamImages) && !empty($teamImages[2]) && !empty($teamImages[2]['Photo'])  ) {
            $teamImage = $teamImages[2]['Photo'];
          ?>

        <ul class="thumbnails">
          <li class="span4">
            <?php echo $this->Html->image($teamImage['image_path'], array('alt' => $teamImage['caption'], 'title' => 'Executive Team Member', 'class' => 'photo')) ?>
          </li>
          <li><p class="companyTitle"><?php echo nl2br($teamImage['caption']);?></p></li>
        </ul>
        <?php } ?>
      </div>
      <div class="span4">
        <?php if (!empty($teamImages) && !empty($teamImages[3]) && !empty($teamImages[3]['Photo'])  ) {
            $teamImage = $teamImages[3]['Photo'];
          ?>

        <ul class="thumbnails">
          <li class="span4">
            <?php echo $this->Html->image($teamImage['image_path'], array('alt' => $teamImage['caption'], 'title' => 'Executive Team Member', 'class' => 'photo')) ?>
          </li>
          <li><p class="companyTitle"><?php echo nl2br($teamImage['caption']);?></p></li>
        </ul>
        <?php } ?>
      </div>
    </div>
      
      <?php $numImages = sizeof($teamImages);
        if ($numImages>4) {
        $i=0;
        for($i=5; $i<$numImages+1; $i++) {
          $teamImage = $teamImages[$i-1]['Photo'];
          if ($i%2==1) {
            echo '<div class="row">';
          } ?>
    
           <div class="span4">

            <ul class="thumbnails">
              <li class="span4">
                <?php echo $this->Html->image($teamImage['image_path'], array('alt' => $teamImage['caption'], 'title' => 'Executive Team Member', 'class' => 'photo')) ?>
              </li>
              <li><p class="companyTitle"><?php echo nl2br($teamImage['caption']);?></p></li>
            </ul>
          </div>         
          <?php
          if ($i%2==0){
            echo '</div>';
          }
          ?>
          
      <?php }

        //checking for uneven numbers
          if ($i%2==1) {
            echo '<div class="span4"></div></div>';
          }

      } ?>
    
  </div>
</div>

<div class="row">
  <div class="span4">
    <h3>Our Mission</h3>
    <p>Excellence, creativity, and professionalism from beginning to end, since 1973.</p>

    <p><span class="text-info highlight">Our Mission is to:</span><br/>
      Fully embrace the privilege of providing <strong>Quality Service</strong> and <strong>Best Value</strong>. Whereby our Clients, Shareholders and Employees will prosper. </p>

  <ul class="thumbnails">
    <li class="span4">
       <?php echo $this->Html->image('food/misc1.jpg', array('alt' => 'Food','title'=>'Food'))?>
    </li>
    <li class="span4">
       <?php echo $this->Html->image('food/misc2.jpg', array('alt' => 'Food','title'=>'Food'))?>
    </li>
  </ul>

  </div>

  <div class="span8">
    <?php
       if(isset( $aboutUsValues['Content']['info'])) {
         echo nl2br($aboutUsValues['Content']['info']);
       }
    ?>

  </div>

</div>

<div class="row">
  <div class="span12">
    <h3>Meet our Executive Chef</h3>
  </div>
</div>
<div class="row">
      <div class="span4">
        <?php if (!empty($chefImage))  { ?>
        <ul class="thumbnails">
          <li class="span4">
            <?php echo $this->Html->image($chefImage['image_path'], array('alt' => $chefImage['caption'], 'title' => $chefImage['caption'], 'class' => 'photo'));  ?>
          </li>
          <li><p class="companyTitle"><?php echo $chefImage['caption'];?></p></li>
        </ul>
        <?php } ?>
      </div>

      <div class="span8">
        <?php
           if(isset( $aboutUsExecChef['Content']['info'])) {
             echo nl2br($aboutUsExecChef['Content']['info']);
           }
        ?>
      </div>

  </div>